|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPER.rover.control.VisionUtil
Utilities for vision. Primarily conversions of different sorts.
Field Summary | |
static int |
CAMERA_HEIGHT
The height of the camera in cm |
static int |
FOV_HEIGHT
|
static int |
FOV_WIDTH
|
static int |
TRACK_HEIGHT
|
static int |
TRACK_WIDTH
|
Constructor Summary | |
VisionUtil()
Creates a new instance of VisionUtil |
Method Summary | |
static int |
objectPan(int trackX)
Converts a trackX value into a pan adjustment. |
static int |
objectTilt(int trackY)
Converts a trackY value into a tilt adjustment. |
static boolean |
v4l_yuv420p2rgb(byte[] yuv_in,
int width,
int height,
int[] rgb_out)
|
static boolean |
v4l_yuv420p2yuv(byte[] yuv_in,
int width,
int height,
int[] yuv_out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TRACK_WIDTH
public static final int TRACK_HEIGHT
public static final int FOV_WIDTH
public static final int FOV_HEIGHT
public static final int CAMERA_HEIGHT
Constructor Detail |
public VisionUtil()
Method Detail |
public static boolean v4l_yuv420p2rgb(byte[] yuv_in, int width, int height, int[] rgb_out)
public static boolean v4l_yuv420p2yuv(byte[] yuv_in, int width, int height, int[] yuv_out)
public static int objectPan(int trackX)
trackX
- The trackX value from color tracking.
public static int objectTilt(int trackY)
trackY
- The trackY value from color tracking.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |